Telegram Group & Telegram Channel
Python Hints
یک ابزار داریم (روی Rust) که توی چندتا بخش نیاز به پردازش یک سری header های درخواستی که میاد داره. یا مثلا بعضی جاها کاربر می‌تونه permission هارو باهاشون کار کنه و ... همیشه خیلی سریع پردازش انجام می‌شد و تمام؛ دیروز یکی از مشتری‌ها اعلام کرد که ابزار خیلی…
پرسیدید؛ چرا AND انجام شده؟

هرعددی نهایتاً بصورت binary توی کامپیوتر ذخیره میشه مثلاً 10 میشه (۸بیتی در نظر بگیریم)

00001010
یا برای 5 می‌شه
00000101

اولین عدد سمت راست همیشه 2⁰ رو ضربدر خودش می‌کنه تا به دسیمال همون سیستم عددی خودمون تبدیل بشه.

2⁰=1
هست، پس اگر سمت راستی ترین بیت 1 باشه اون عدد فرد هست.
👍204



tg-me.com/pyHints/848
Create:
Last Update:

پرسیدید؛ چرا AND انجام شده؟

هرعددی نهایتاً بصورت binary توی کامپیوتر ذخیره میشه مثلاً 10 میشه (۸بیتی در نظر بگیریم)

00001010
یا برای 5 می‌شه
00000101

اولین عدد سمت راست همیشه 2⁰ رو ضربدر خودش می‌کنه تا به دسیمال همون سیستم عددی خودمون تبدیل بشه.

2⁰=1
هست، پس اگر سمت راستی ترین بیت 1 باشه اون عدد فرد هست.

BY Python Hints




Share with your friend now:
tg-me.com/pyHints/848

View MORE
Open in Telegram


Python Hints Telegram | DID YOU KNOW?

Date: |

Why Telegram?

Telegram has no known backdoors and, even though it is come in for criticism for using proprietary encryption methods instead of open-source ones, those have yet to be compromised. While no messaging app can guarantee a 100% impermeable defense against determined attackers, Telegram is vulnerabilities are few and either theoretical or based on spoof files fooling users into actively enabling an attack.

Mr. Durov launched Telegram in late 2013 with his brother, Nikolai, just months before he was pushed out of VK, the Russian social-media platform he founded. Mr. Durov pitched his new app—funded with the proceeds from the VK sale—less as a business than as a way for people to send messages while avoiding government surveillance and censorship.

Python Hints from hk


Telegram Python Hints
FROM USA